@extends('huweize.layouts.userHome')
@section('title','小功能-阅文作家专区')
@section('main')
    <div class="col-md-12 vipHeader">
        <h3>QQ号码测吉凶</h3>
    </div>
    <div class="col-md-12">

            <div class="form-group" style="float:left;margin-left: 264px;margin-top: 33px; ">
                <label for="exampleInputName2">QQ号:</label>
                <input type="text" class="form-control qqce" id="exampleInputName2" placeholder="请输入你的QQ号">
            </div>
            <br>
            <button id="feiqq" class="btn btn-default" style="margin-left: -135px;margin-bottom: -191px;">查询</button>

    </div>

    <div class="feiqq">
          <div class="qq-title">
              <span>QQ号码:</span>
          </div>
          <div class="qq-main">
              <span>签文:<span id="b"></span></span>
              <br>
              <span>解签:<span id="a"></span></span>
          </div>
    </div>
    <script>
        $(function(){
            $('#feiqq').click(function(){
                $qq = $('.form-control').val();
//                alert($qq);
                $.ajax({
                    url:"{{url('huweize/home/feiqq')}}",
                    type:'get',
                    data:'qq='+$qq,
                    success:function(data){
                     $('#a').empty()
                     $('#b').empty()
                        $('#b').append(data['result']['data']['conclusion'])
                        $('#a').append(data['result']['data']['analysis'])

                    },
                    error:function(){

                    },
                    datatype:'text'

                })
            });
        })
    </script>

    @endsection
